package com.itlaobing.spring.ioc.autowire;

public class IdentityCard {

    private Integer id ; // 对应数据库主键(仅仅是个序号而已)
    private String cardNo ; // 公民身份号码

    private Citizen citizen ; // 持有对Citizen实例的引用

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Citizen getCitizen() {
        return citizen;
    }

    public void setCitizen(Citizen citizen) {
        this.citizen = citizen;
    }
}
